	CURL *curl;
	FILE *fd;
	CURLcode res;
	double speed_upload;
	double total_time;
	curl=curl_easy_init();

if(curl){
	cout << "CURL HAS INITIATED" << endl;
	fd = fopen("demo.txt", "rb");
	curl_easy_setopt(curl, CURLOPT_URL, "scp://10.8.3.69:/usr/local/apache-tomcat-6.0.35/webapps/ROOT/js/broadcaster");
	curl_easy_setopt(curl, CURLOPT_USERPWD, "root:smartx00x");
	 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
	 curl_easy_setopt(curl, CURLOPT_READDATA, fd);
	 //curl_easy_setopt(curl, CURLOPT_INFILESIZE, (long)file_info.st_size);
	 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);

	 res=curl_easy_perform(curl);

	 if(res != CURLE_OK)
	       fprintf(stderr, "curl_easy_perform() failed: %s\n",  curl_easy_strerror(res));

	 curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
	 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);

	     printf("Speed: %.3f bytes/sec during %.3f seconds\n", speed_upload, total_time);

	     /* always cleanup */
	     curl_easy_cleanup(curl);

}
